//
//  SystemSettingHelper.m
//  Router
//
//  Created by teki on 15/10/27.
//  Copyright © 2015年 dc. All rights reserved.
//

#import "SystemSettingHelper.h"

@implementation SystemSettingHelper
- (void)unBindUserAndDeviceWithDeviceID:(NSString *)deviceID user:(NSString *)user success:(RequestSussess)success failure:(RequestFailure)failure
{
    NSDictionary *param = @{@"deviceID":deviceID,
                            @"user":user};
    [self.requestOperator requestPostWithURL:SYSTEM_SETTING_UNBIND_POST_URL params:param success:^(BOOL succ, id responseObject) {
        success(YES,responseObject,nil);
    } failure:failure];
}



- (void)restartDeviceWithDeviceID:(NSString *)deviceID success:(RequestSussess)success failure:(RequestFailure)failure
{
    NSDictionary *param = @{@"deviceID":deviceID};
    [self.requestOperator requestPostWithURL:SYSTEM_SETTING_RESTART_DEVICE_POST_URL params:param success:^(BOOL succ, id responseObject) {
        success(YES,responseObject,nil);
    } failure:failure];
}
@end
